import { ethers } from "ethers";
import VSampleTokenAbi from "./abis/VSampleToken.json";

export const CONTRACT_ADDRESS = import.meta.env.VITE_CONTRACT_ADDRESS;

export function getContract(providerOrSigner: ethers.Signer | ethers.providers.Provider) {
  return new ethers.Contract(CONTRACT_ADDRESS, VSampleTokenAbi, providerOrSigner);
}
